/**
 * vuex 状态管理
 */

import { createStore} from 'vuex'
import mutations from './mutations'
import actions from './action'
import {getLocal} from  '../utils/storage'

const state ={
    userInfo:'' || getLocal('userInfo'),
    token:'' || getLocal('token'),
    layouTheme:true,
    meunTab:false,
    currentMenuKey:'' || getLocal('currentMenuKey'),
    count:null,
    menuData:[],
    rolesVerifyToken:true
}

export default createStore({
    state,
    mutations,
    actions
})